package com.caozhen.manage.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.caozhen.manage.mapper.RoleMapper;

@Service
public class RoleService {

	@Autowired
	private RoleMapper roleMapper;
	
	public List<Long> findRoleIdListByUserId(Long id) {
		return roleMapper.findRoleIdListByUserId(id);
	}

	public List<Map<Long, String>> findRolePermissionsByRoleId(Long roleId) {
		return roleMapper.findRolePermissionsByRoleId(roleId);
	}

}
